package com.mark.mall.admin.platform.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * Created by admin on 2021/2/28 18:09
 */
@Data
@ApiModel("后台物料新增")
public class ProductAddParam {

    @ApiModelProperty(value = "物料编码")
    @NotEmpty(message = "物料编码不能为空!")
    private String code;

    @ApiModelProperty(value = "物料名称")
    @NotEmpty(message = "物料名称不能为空!")
    private String name;

    @ApiModelProperty(value = "物料价格")
    private BigDecimal price;

    @ApiModelProperty(value = "物料库存")
    private Integer stock;

    @ApiModelProperty(value = "物料单位")
    @NotEmpty(message = "物料单位不能为空!")
    private String unit;

    @ApiModelProperty(value = "供应商id")
    @NotEmpty(message = "供应商id不能为空!")
    private String providerId;

}
